package com.ejbs;

import java.rmi.RemoteException;
import java.util.List;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

import com.negocio.NEmpresa;

public class ESEmpresaBean implements SessionBean {
	
	private static final long serialVersionUID = 1L;
	private NEmpresa nempresa;
	
	public ESEmpresaBean() {nempresa = new NEmpresa();}
	public void ejbCreate() {}
	public void ejbActivate() throws EJBException, RemoteException {}
	public void ejbPassivate() throws EJBException, RemoteException {}
	public void ejbRemove() throws EJBException, RemoteException {}	
	public void setSessionContext(SessionContext arg0) throws EJBException,RemoteException {}


    public List listar() {
        return nempresa.listar();
    }

}
